import request from '@/utils/request';
// 获取客户列表 / 商机列表
export function getList(query) {
  return request({
    url: '/heart/Customer/list',
    method: 'get',
    params: query
  })
}
// 新建 客户/ 商机
export function addCustomer(data) {
  return request({
    url: '/heart/Customer',
    method: 'post',
    data
  })
}
// 暂存客户
export function saveCustomer(data) {
  return request({
    url: '/heart/Customer/draft',
    method: 'post',
    data
  })
}
// 提交客户
export function submitCustomer(data) {
  return request({
    url: '/heart/Customer/submit',
    method: 'post',
    data
  })
}
// 删除客户 / 商机
export function deleteCustomer(query) {
  return request({
    url: '/heart/Customer/' + query,
    method: 'delete',
  })
}
//获取客户详细信息 / 商机信息
export function getDetailCustomer(query) {
  return request({
    url: '/heart/Customer/' + query,
    method: 'get',
  })
}
// 查询 客户/ 商机 
export function searchCustomer(query) {
  return request({
    url: '/heart/Customer/list',
    method: 'get',
    params: query
  })
}
// 勘测报告 修改列表
export function editCustomerList(data) {
  return request({
    url: '/heart/Customer',
    method: 'put',
    data
  })
}